﻿using BeetleX.XRPC;
using Microsoft.Extensions.DependencyInjection;
using Odyssey;
using System;

namespace XRPC.Service
{
    class Startup : IStartup
    {
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            return services.BuildServiceProvider();
        }

        public void Configure(IServiceProvider serviceProvider)
        {
            var mXRPCServer = new XRPCServer();
            mXRPCServer.Register(typeof(Program).Assembly);
            mXRPCServer.Open();
        }
    }
}
